<template>
    <div class="login-page">
        <!-- <particlesJs /> -->
        <div class="login-box">
            <h2 class="title">HOME FOR SMEs</h2>
            <p class="tips">深圳证券交易所 - 中小企业之家 - 项目管理系统</p>

            <form action="">
                <div class="form-label">
                    <div class="form-icon">
                        <i class="iconfont">&#xe601;</i>
                    </div>
                    <input type="text" class="form-input" placeholder="请输入用户名">
                </div>
                
                <div class="form-label">
                    <div class="form-icon">
                        <i class="iconfont">&#xe600;</i>
                    </div>
                    <input type="password" class="form-input" placeholder="请输入密码">
                </div>

                <div class="form-label">
                    <div class="yzm-ipt">
                        <div class="form-icon">
                            <i class="iconfont">&#xe602;</i>
                        </div>
                        <input type="text" class="form-input" placeholder="请输入密码"> 
                    </div>
                    <div class="yzm">
                        <img src="http://pic.58pic.com/58pic/13/82/74/92q58PICeSI_1024.jpg" alt="">
                    </div>
                </div>

                <div class="form-label mt30">
                    <input type="button" class="login-btn" value="登 录" @click="handleSubmit">
                </div>
            </form>
            
        </div>

        <div class="footer">
            <p class="footer-link">
                <a href="#">
                    <img src="../../assets/img/sjsLogo.png" alt="">
                    深圳证券交易所
                </a>
                 <a href="#" style="margin-right: 10px;">
                    <img src="../../assets/img/smesLogo.png" alt="">
                    前台报名系统
                </a>
                <a href="#" style="margin-right: 10px;">
                    内容管理系统
                </a>
                <a href="#" style="margin-right: 0;">
                    会务系统                
                </a>
            </p>
            <p class="copyright">
                Copyright © 2019 HOME FOR SMEs All Rightsreserved Power
                <img src="../../assets/img/referenceIcon.png" alt="">
            </p>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'login',
        data() {
            return {
                loginData: {
                    username: '',
                    password: '',
                    validateCode: ''
                }
            }
        },
        methods: {
            handleSubmit (){
                this.$router.push('/admin')
            }
        }
    }
</script>

<style scoped lang="less" >
    .login-page {
        display: flex;
        position: relative;
        height: calc(100vh);
        color: #fff;
        justify-content: center;
        align-items: center;

        .login-box {
            width: 480px;
            text-align: center;
            
            .title {
                font-weight: bold;
                font-size: 50px;
            }

            .tips {
                margin: 20px 0 50px;
            }

            .form-label {
                display: flex;
                align-items: center;
                position: relative;
                margin-bottom: 20px;

                input::-webkit-input-placeholder {
                    color: rgba(255,255,255,.3);
                }
                .form-icon {
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    width: 40px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                .form-input {
                    flex: 1 1;
                    height: 40px;
                    color: #fff;
                    outline: none;
                    padding-left: 40px;
                    background:rgba(97,151,212,.1);
                    border:1px solid rgba(185,209,236,.2);
                    border-radius:20px;
                    box-shadow: 0px 0px 11px 5px rgba(255,255,255,0.05) inset;
                    box-sizing: border-box;
                }

                .yzm-ipt {
                    display: flex;
                    width: 340px;
                    position: relative;
                    padding-right: 20px;
                }
                
                .yzm {
                    flex: 1;
                    border-radius: 20px;
                    overflow: hidden;

                    img {
                        vertical-align: middle;
                        width: 100%;
                        height: 40px;
                    }
                }

                .login-btn {
                    height:40px;
                    background:linear-gradient(0deg,rgba(175,3,7,1) 0%,rgba(221,67,70,1) 100%);
                    border-radius:20px;
                    outline: none;
                    border: none;
                    color: #fff;
                    width: 100%;
                    cursor: pointer;
                    font-size: 16px;
                }

            }

            .mt30 {
                margin-top: 30px;
            }

            .full-btn {
                width: 100%;
                background:linear-gradient(0deg,rgba(175,3,7,1) 0%,rgba(221,67,70,1) 100%);
                border: none
            }
        }

        .footer {
            position: fixed;
            bottom: 40px;
            font-size: 12px;
            
            .footer-link {
                display: flex;

                a {
                    color: rgba(255,255,255,.3);
                    margin-right: 20px;
                    text-decoration: none;

                    img {
                        vertical-align: top;
                        opacity: .5;
                    }
                }

            }

            .copyright {
                margin-top: 12px;
                color: rgba(255,255,255,.5);
                img {
                    width: 12px;
                    height: 12px;
                    vertical-align: top;
                }
            }
        }
    }
</style>
